Skip to content

Add web remote buttons for audio and subtitle cycling - #641

Merged
shane-mason merged 1 commit into
shane-mason:mainfrom
mechaigor-hash:remote-av-buttons-minimal
Aug 11, 2026
Merged

Add web remote buttons for audio and subtitle cycling#641
shane-mason merged 1 commit into
shane-mason:mainfrom
mechaigor-hash:remote-av-buttons-minimal

Conversation

@mechaigor-hash

Copy link
Copy Markdown
Contributor

Summary

Adds SUBS and AUDIO buttons to the built-in FS42 web remote.

The buttons use the existing mpv control endpoints to cycle subtitle and audio tracks on the currently playing item:

  • POST /player/mpv/cycle-subtitles
  • POST /player/mpv/cycle-audio

I’ve kept this deliberately small after the previous PR feedback. This only updates fs42/fs42_server/static/remote.html; it does not change playback defaults, language preference logic, play_file(), sequence scanning, or the separate legacy remote app.

Testing

Ran:

python3 -m py_compile fs42/fs42_server/api/player.py

Also checked the remote HTML for the new buttons and endpoint calls.

@shane-mason

Copy link
Copy Markdown
Owner

Starting review today.

@shane-mason

Copy link
Copy Markdown
Owner

This looks great - thanks! The new functions are documented now on: https://fieldstation42.com/docs/reference/web-remote/#subtitles-and-audio-tracks

@shane-mason
shane-mason merged commit 1a654b3 into shane-mason:main Aug 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants